<?php
include_once "func.php";
ini_set('display_errors', '0');
error_reporting(0);//禁用错误报告 

// data:{ englishname:englishname,chinesename:chinesename,
// nationality:nationality,contactnumber:contactnumber,email:email,place:place},

$userid = $_POST['userid'];
$thumb = $_POST['userthumb'];
$description = $_POST['selfintro'];
$sporttitle = $_POST['sporttitle'];
$resume = $_POST['resume'];

 
// if($smscode==''){
// 	$return = array(
// 	    'result' => 3
// 	);
// 	ajax_return($return);
// }
 
$sql = "update coach set thumb='$thumb',description='$description',sporttitle='$sporttitle',resume='$resume' where id='$userid'";
$res = $db->query($sql);
 
if($res){
 	$return = array(
	    'result' => 1
	);
	ajax_return($return);
}

 
  
?>